#include<iostream>
#include<queue>
using namespace std;
class Solution {
public:
    string interpret(string command) {
        int k = 0; 
        string ans;
        while (k < command.size())
        {
            if (command[k] == 'G')
            {
                ans.push_back(command[k]);
                k++;
                continue;
            }
            if (command[k] == '(')
            {
                if (command[k + 1] == ')')
                {
                    ans.push_back('o');
                    k += 2;
        
                }
                else
                    ans.push_back('a');
                    ans.push_back('l');
                    k += 4;
                continue;
            }

           
            
        }
        return ans;

    }
};